package com.rectcircle.dao

import com.rectcircle.db.ReaderDb
import com.rectcircle.model.{Book, Borrowal, Reader}

object ReaderDao{
	def save(r:Reader) = ReaderDb.save(r)
	
	def getByUsername(username:String) = {
		ReaderDb.findByUsername(username).single
	}
	
	def withBooks(reader: Reader) = {
		ReaderDb.withBooks(reader)
	}
	
}